﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x0200009B RID: 155
	public class TCreateUserStmt : TCustomSqlStatement
	{
		// Token: 0x060004AD RID: 1197 RVA: 0x002FBC71 File Offset: 0x002F9E71
		public TCreateUserStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstcreateuser;
		}

		// Token: 0x060004AE RID: 1198 RVA: 0x002FBC85 File Offset: 0x002F9E85
		public TObjectName getUserName()
		{
			return this.userName;
		}

		// Token: 0x060004AF RID: 1199 RVA: 0x002FBC90 File Offset: 0x002F9E90
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TCreateUserSqlNode tcreateUserSqlNode = (TCreateUserSqlNode)this.rootNode;
			this.userName = tcreateUserSqlNode.UserName;
			return 0;
		}

		// Token: 0x060004B0 RID: 1200 RVA: 0x002FBCC8 File Offset: 0x002F9EC8
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060004B1 RID: 1201 RVA: 0x002FBCD8 File Offset: 0x002F9ED8
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001111 RID: 4369
		private TObjectName userName;
	}
}
